package com.example.exceldemo.entity;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@NoArgsConstructor
@Data
public class Folder {
    private String name;
    private Map<String, Folder> subFolders = new HashMap<>();
    private List<String> files = new ArrayList<>();
    private Long id;
    private Long parentId;
    /**
     * 编码值
     */
    private String fid;
    /**
     * 层级名称
     */
    private String fname;
    /**
     * 层级
     */
    private Integer level;

    public Folder(String name) {
        this.name = name;
    }

}